Skip to content

Conversation

@koppor
Copy link
Collaborator

@koppor koppor commented Jul 6, 2024

When a textfield's textproperty is bound to another property and this property is updated, undo throws an exception:

Exception in thread "JavaFX Application Thread" java.lang.NullPointerException: Cannot read field "next" because "this.undoChange" is null
        at [email protected]/javafx.scene.control.TextInputControl.updateUndoRedoState(TextInputControl.java:1250)
        at [email protected]/javafx.scene.control.TextInputControl.undo(TextInputControl.java:1201)

@Siedlerchr
Copy link
Owner

Maybe because it's from a different thread?

@koppor
Copy link
Collaborator Author

koppor commented Jul 7, 2024

Maybe because it's from a different thread?

One can reproduce by typing something in the field by oneself and then pressing Ctrl+Z.

@koppor
Copy link
Collaborator Author

koppor commented Jul 8, 2024

We will review your report and have assigned it an internal review ID : 9077281.

@koppor
Copy link
Collaborator Author

koppor commented Jul 10, 2024

Should be available as JDK-8336065 soon.

@Siedlerchr
Copy link
Owner

Visible under https://bugs.openjdk.org/browse/JDK-8336065

@koppor
Copy link
Collaborator Author

koppor commented Jul 11, 2024

Visible under https://bugs.openjdk.org/browse/JDK-8336065

Bug report was closed as user error. We need to resubmit using our cursor positioning example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants